#include <iostream>
#include <stdio.h>

struct T {
	size_t size_array;
	size_t size_max;
	size_t size_el;
	size_t *array;

};

T create(size_t size_el){
	T a = {0, 0, size_el};
	a.array = new size_t[a.size_array];
	return a;
};

int add (T& a_t, void *a_ToAdd){

	std::cout << sizeof(a_t.array)/sizeof(a_t.array[0]) << std::endl;
	std::cout << a_ToAdd;

	return 0;
};

int deleted (T& a_t, void *a_toDelete){
	search(a_t, a_toDelete);
	return 0;
};

void * search (T& a_t, void *a_toSearch){
	size_t arraySize = sizeof(a_t.array);
	size_t i;
	int n = 1;
	for (i = 0; i < arraySize; ++i){
		 n = memcmp (&a_t.array[i], a_toSearch);
		 if (n == 0) {
			 return &a_t.array[i];
		 };
	} return 1;
};

int main (int argc, const char* argv[]){
	T t = create(2);
	size_t array2[3] = {6,3,4};
	size_t *array2Ptr = &array2[0];

	add (t,array2Ptr);
	/*add (t,array2Ptr);
	add (t,array2Ptr);*/
}
